﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="RecipientsCopyCut.ascx.vb" Inherits="Controls_RecipientsCopyCut" %>

<table >
    <tr>
        <td>
            <asp:Panel ID="Panel1" runat="server">
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="MyEntityODS"
                    DataTextField="Name" DataValueField="ID" Width="209px">
                </asp:DropDownList>
                <asp:ObjectDataSource ID="MyEntityODS" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetPersonEntityListByPersonIdTableAdapter">
                    <SelectParameters>
                        <asp:Parameter DbType="Guid" Name="UserId" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:DropDownList ID="DropDownList2" runat="server" CausesValidation="false" DataSourceID="SqlDataSource1"
                    DataTextField="Name" DataValueField="ID" AutoPostBack="True">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                    DeleteCommand="usp_TargetListDelete" DeleteCommandType="StoredProcedure" InsertCommand="usp_TargetListInsert"
                    InsertCommandType="StoredProcedure" SelectCommand="usp_TargetListSelectByEntityId"
                    SelectCommandType="StoredProcedure" UpdateCommand="usp_TargetListUpdate" UpdateCommandType="StoredProcedure">
                    <DeleteParameters>
                        <asp:ControlParameter ControlID="DropDownList2" Name="ID" PropertyName="SelectedValue"
                            Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="EntityId" Type="Int32" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter Name="MsgRef" Type="String" />
                        <asp:Parameter Name="BillingRef" Type="String" />
                        <asp:Parameter Name="ListTypeId" Type="Byte" />
                        <asp:Parameter Name="Note" Type="String" />
                        <asp:Parameter Name="SingleUse" Type="Boolean" />
                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                        <asp:Parameter Name="IsDefault" Type="Boolean" />
                        <asp:Parameter Name="DateDiscarded" Type="Boolean" />
                        <asp:Parameter Name="Active" Type="Boolean" />
                        <asp:Parameter Direction="InputOutput" Name="TargetListId" Type="Int32" />
                    </InsertParameters>
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList1" Name="EntityID" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="ID" Type="Int32" />
                        <asp:Parameter Name="EntityId" Type="Int32" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter Name="MsgRef" Type="String" />
                        <asp:Parameter Name="BillingRef" Type="String" />
                        <asp:Parameter Name="ListTypeId" Type="Byte" />
                        <asp:Parameter Name="Note" Type="String" />
                        <asp:Parameter Name="SingleUse" Type="Boolean" />
                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                        <asp:Parameter Name="IsDefault" Type="Boolean" />
                        <asp:Parameter Name="DateDiscarded" Type="Boolean" />
                        <asp:Parameter Name="Active" Type="Boolean" />
                    </UpdateParameters>
                </asp:SqlDataSource>
                <asp:GridView ID="GridView2" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CausesValidation="false" DataKeyNames="Id"
                    DataSourceID="ObjectDataSource1" CellPadding="4"
                    ForeColor="#333333"
                    EmptyDataText="There are no Recipients for this list so far. Click the &lt;b&gt;Add Recipients(s)&lt;/b&gt; button above to get started"
                    AllowPaging="True">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:CheckBox ID="RecSelector" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                            SortExpression="Id" />
                        <asp:BoundField DataField="CustomRefId" HeaderText="CustomRefId" SortExpression="CustomRefId" />
                        <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
                        <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
                        <asp:BoundField DataField="HomeEmailAddress" HeaderText="HomeEmailAddress" SortExpression="HomeEmailAddress" />
                        <asp:BoundField DataField="WorkEmailAddress" HeaderText="WorkEmailAddress" SortExpression="WorkEmailAddress" />
                        <asp:BoundField DataField="MobileNo" HeaderText="MobileNo" SortExpression="MobileNo" />
                        <asp:BoundField DataField="DateAddedToList" HeaderText="DateAddedToList" SortExpression="DateAddedToList" />
                        <asp:CheckBoxField DataField="IsAdult" HeaderText="IsAdult" SortExpression="IsAdult" />
                        <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                        <asp:BoundField DataField="NI_Number" HeaderText="NI_Number" SortExpression="NI_Number" />
                        <asp:BoundField DataField="SS_Number" HeaderText="SS_Number" SortExpression="SS_Number" />
                        <asp:BoundField DataField="BirthMonth" HeaderText="BirthMonth" SortExpression="BirthMonth" />
                        <asp:BoundField DataField="BirthDay" HeaderText="BirthDay" SortExpression="BirthDay" />
                        <asp:BoundField DataField="BirthYear" HeaderText="BirthYear" SortExpression="BirthYear" />
                        <asp:BoundField DataField="PostCode" HeaderText="PostCode" SortExpression="PostCode" />
                        <asp:BoundField DataField="HouseNo" HeaderText="HouseNo" SortExpression="HouseNo" />
                        <asp:BoundField DataField="OccupationNote" HeaderText="OccupationNote" SortExpression="OccupationNote" />
                        <asp:CheckBoxField DataField="IsLocal" HeaderText="IsLocal" SortExpression="IsLocal" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="TempTableAdapters.DataTable1TableAdapter">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList2" Name="TargetListId" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
            </asp:Panel>

        </td>
    </tr>
    <tr>
        <td  >


            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0" Selected="True">Copy</asp:ListItem>
                <asp:ListItem Value="1">Cut</asp:ListItem>
            </asp:RadioButtonList>
            <asp:Button ID="Button2" runat="server" Text="Submit" />


        </td>
    </tr>
    <tr>
        <td >
            <asp:Panel ID="Panel2" runat="server">
                <asp:DropDownList ID="DropDownList11" runat="server" AutoPostBack="True" DataSourceID="MyEntityODS1"
                    DataTextField="Name" DataValueField="ID" Width="209px">
                </asp:DropDownList>
                <asp:ObjectDataSource ID="MyEntityODS1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetPersonEntityListByPersonIdTableAdapter">
                    <SelectParameters>
                        <asp:Parameter DbType="Guid" Name="UserId" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:DropDownList ID="DropDownList22" runat="server" DataSourceID="SqlDataSource11"
                    DataTextField="Name" DataValueField="ID" AutoPostBack="True">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource11" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>"
                    DeleteCommand="usp_TargetListDelete" DeleteCommandType="StoredProcedure" InsertCommand="usp_TargetListInsert"
                    InsertCommandType="StoredProcedure" SelectCommand="usp_TargetListSelectByEntityId"
                    SelectCommandType="StoredProcedure" UpdateCommand="usp_TargetListUpdate" UpdateCommandType="StoredProcedure">
                    <DeleteParameters>
                        <asp:ControlParameter ControlID="DropDownList2" Name="ID" PropertyName="SelectedValue"
                            Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="EntityId" Type="Int32" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter Name="MsgRef" Type="String" />
                        <asp:Parameter Name="BillingRef" Type="String" />
                        <asp:Parameter Name="ListTypeId" Type="Byte" />
                        <asp:Parameter Name="Note" Type="String" />
                        <asp:Parameter Name="SingleUse" Type="Boolean" />
                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                        <asp:Parameter Name="IsDefault" Type="Boolean" />
                        <asp:Parameter Name="DateDiscarded" Type="Boolean" />
                        <asp:Parameter Name="Active" Type="Boolean" />
                        <asp:Parameter Direction="InputOutput" Name="TargetListId" Type="Int32" />
                    </InsertParameters>
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList11" Name="EntityID" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="ID" Type="Int32" />
                        <asp:Parameter Name="EntityId" Type="Int32" />
                        <asp:Parameter Name="Name" Type="String" />
                        <asp:Parameter Name="MsgRef" Type="String" />
                        <asp:Parameter Name="BillingRef" Type="String" />
                        <asp:Parameter Name="ListTypeId" Type="Byte" />
                        <asp:Parameter Name="Note" Type="String" />
                        <asp:Parameter Name="SingleUse" Type="Boolean" />
                        <asp:Parameter Name="DateCreated" Type="DateTime" />
                        <asp:Parameter Name="IsDefault" Type="Boolean" />
                        <asp:Parameter Name="DateDiscarded" Type="Boolean" />
                        <asp:Parameter Name="Active" Type="Boolean" />
                    </UpdateParameters>
                </asp:SqlDataSource>
                <asp:GridView ID="GridView22" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CausesValidation="false" DataKeyNames="Id"
                    DataSourceID="ObjectDataSource11" CellPadding="4"
                    ForeColor="#333333"
                    EmptyDataText="There are no Recipients for this list so far. Click the &lt;b&gt;Add Recipients(s)&lt;/b&gt; button above to get started"
                    AllowPaging="True">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" InsertVisible="False" ReadOnly="True"
                            SortExpression="Id" Visible="False" />
                        <asp:BoundField DataField="CustomRefId" HeaderText="CustomRefId" SortExpression="CustomRefId" />
                        <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" />
                        <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" />
                        <asp:BoundField DataField="HomeEmailAddress" HeaderText="HomeEmailAddress" SortExpression="HomeEmailAddress" />
                        <asp:BoundField DataField="WorkEmailAddress" HeaderText="WorkEmailAddress" SortExpression="WorkEmailAddress" />
                        <asp:BoundField DataField="MobileNo" HeaderText="MobileNo" SortExpression="MobileNo" />
                        <asp:BoundField DataField="DateAddedToList" HeaderText="DateAddedToList" SortExpression="DateAddedToList" />
                        <asp:CheckBoxField DataField="IsAdult" HeaderText="IsAdult" SortExpression="IsAdult" />
                        <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" />
                        <asp:BoundField DataField="NI_Number" HeaderText="NI_Number" SortExpression="NI_Number" />
                        <asp:BoundField DataField="SS_Number" HeaderText="SS_Number" SortExpression="SS_Number" />
                        <asp:BoundField DataField="BirthMonth" HeaderText="BirthMonth" SortExpression="BirthMonth" />
                        <asp:BoundField DataField="BirthDay" HeaderText="BirthDay" SortExpression="BirthDay" />
                        <asp:BoundField DataField="BirthYear" HeaderText="BirthYear" SortExpression="BirthYear" />
                        <asp:BoundField DataField="PostCode" HeaderText="PostCode" SortExpression="PostCode" />
                        <asp:BoundField DataField="HouseNo" HeaderText="HouseNo" SortExpression="HouseNo" />
                        <asp:BoundField DataField="OccupationNote" HeaderText="OccupationNote" SortExpression="OccupationNote" />
                        <asp:CheckBoxField DataField="IsLocal" HeaderText="IsLocal" SortExpression="IsLocal" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource11" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="TempTableAdapters.DataTable1TableAdapter">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="DropDownList22" Name="TargetListId" PropertyName="SelectedValue"
                            Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
            </asp:Panel>

        </td>
    </tr>
</table>

